<%--
  Created by IntelliJ IDEA.
  User: 王德明
  Date: 2018/5/23
  Time: 15:08
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<div class="modal-header">
    <button class="close" ng-click="cancel()">
        <span aria-hidden="true">×</span>
    </button>
    <h3 class="modal-title" id="modal-title">{{title}}</h3>
</div>

<div class="modal-body" id="modal-body">
    <div class="ibox-content no-borders tab-content">
        <form name="myForm" class="form-horizontal formTopSpacing" ng-model="row">
            <!--商户号-->
            <div class="form-group">
                <label class="col-sm-4 control-label formTextVerticalMiddle">商户号：</label>
                <div class="col-sm-5">
                    <input id="merId" name="merId" type="text" class="form-control" ng-model="row.ref_id" readonly>
                </div>
            </div>
            <!--商户名称-->
            <div class="form-group">
                <label class="col-sm-4 control-label formTextVerticalMiddle">名称：</label>
                <div class="col-sm-5">
                    <input id="merName" name="merName" type="text" class="form-control" ng-model="row.merchantName"
                           readonly>
                </div>
            </div>
            <!--提现币种-->
            <div class="form-group">
                <label class="col-sm-4 control-label formTextVerticalMiddle">提现币种: </label>
                <div class="col-sm-5">
                    <input id="currency" name="currency" type="text" class="form-control" ng-model="row.currency"
                           readonly>
                </div>
            </div>
            <!--提现金额-->
            <div class="form-group">
                <label class="col-sm-4 control-label formTextVerticalMiddle">提现金额：</label>
                <div class="col-sm-5">
                    <input id="amount" name="amount" type="text" class="form-control" ng-model="row.amount" readonly>
                </div>
            </div>
            <!--划款币种-->
            <div class="form-group">
                <label class="col-sm-4 control-label formTextVerticalMiddle">划款币种: </label>
                <div class="col-sm-5">
                    <input id="transfercurrency" name="transfercurrency" type="text" class="form-control"
                           ng-model="row.transfer_currency " readonly>
                </div>
            </div>
            <!--划款金额-->
            <div class="form-group">
                <label class="col-sm-4 control-label formTextVerticalMiddle">划款金额：</label>
                <div class="col-sm-5">
                    <input id="transferamount" name="transferamount" type="text" class="form-control"
                           ng-model="row.transfer_amount" readonly>
                </div>
            </div>
            <!--交易汇率-->
            <div class="form-group">
                <label class="col-sm-4 control-label formTextVerticalMiddle">交易汇率: </label>
                <div class="col-sm-5">
                    <input id="rate" name="rate" type="text" class="form-control" ng-model="row.rate" readonly>
                </div>
                <button class="btn btn-sm btn-primary" type="button" ng-click="modify()" ng-show="modifyflag">修改
                </button>
                <button class="btn btn-sm btn-primary" type="button" ng-click="determine()" ng-show="determineflag">保存
                </button>
            </div>
            <!--申请人-->
            <div class="form-group">
                <label class="col-sm-4 control-label formTextVerticalMiddle">申请人: </label>
                <div class="col-sm-5">
                    <input id="applicant" name="applicant" type="text" class="form-control" ng-model="row.applicant "
                           readonly>
                </div>
            </div>
            <!--申请时间-->
            <div class="form-group">
                <label class="col-sm-4 control-label formTextVerticalMiddle">申请时间: </label>
                <div class="col-sm-5">
                    <input id="applicationTime" name="applicationTime" type="text" class="form-control"
                           value="{{ row.application_time | date: 'yyyy-MM-dd hh:mm:ss' }}" readonly>
                </div>
            </div>
            <!--审核人-->
            <div ng-if="isShow">
                <div class="form-group">
                    <label class="col-sm-4 control-label formTextVerticalMiddle">审核人: </label>
                    <div class="col-sm-5">
                        <input id="auditor" name="auditor" type="text" class="form-control" ng-model="row.auditor "
                               readonly>
                    </div>
                </div>
                <!--审核时间-->
                <div class="form-group">
                    <label class="col-sm-4 control-label formTextVerticalMiddle">审核时间: </label>
                    <div class="col-sm-5">
                        <input id="auditTime" name="auditTime" type="text" class="form-control"
                               value="{{ row.audit_time | date: 'yyyy-MM-dd hh:mm:ss' }}" readonly>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-4 control-label formTextVerticalMiddle"><span
                        class="text-danger">*</span>审核选择：</label>
                <div class="col-sm-5">
                    <input type="radio" name="statusName" ng-model="row.status" ng-checked="true"/>通过
                    <input type="radio" name="statusName" value="0" ng-model="row.status"/>未通过
                </div>
            </div>

            <div class="form-group">


                <div ng-if="isShowRemark">
                    <label class="col-sm-4 control-label formTextVerticalMiddle">审核描述: </label>
                    <div class="col-sm-5">
                        <input id="remark" name="remark" type="text" class="form-control" ng-model="row.remark" ng-readonly="isReadOnly_Remark">
                    </div>
                </div>

                <div ng-if="isShowReviewRemark">
                    <label class="col-sm-4 control-label formTextVerticalMiddle">复核描述: </label>
                    <div class="col-sm-5">
                        <input id="review_remark" name="remark" type="text" class="form-control"
                               ng-model="row.review_remark" ng-readonly="isReadOnly_ReviewRemark">
                    </div>
                </div>

                <div ng-if="isShowTransfer">

                    <label class="col-sm-4 control-label formTextVerticalMiddle">实际划款金额: </label>
                    <div class="col-sm-5">
                        <input id="realAmount" name="realAmount" type="text" class="form-control" placeholder="必填且需为数字"
                               ng-model="row.realAmount">
                    </div>


                    <label class="col-sm-4 control-label formTextVerticalMiddle">划款描述: </label>
                    <div class="col-sm-5">
                        <input id="transfer_remark" name="remark" type="text" class="form-control"
                               ng-model="row.transfer_remark">
                    </div>
                </div>



            </div>
        </form>
    </div>
</div>

<div class="modal-footer">
    <row>
        <div class="col-sm-12">
            <div class="center">
                <button class="btn btn-sm btn-primary" type="button"
                        ng-click="auditWithdrawal(row)">
                    确定
                </button>
            </div>
        </div>
    </row>
</div>